from django.db import models


# Create your models here.

class Word(models.Model):
    date = models.DateField()
    word = models.CharField(max_length=200)
    author = models.CharField(max_length=20)


class Article(models.Model):
    digest = models.TextField(blank=True)
    content = models.TextField(blank=True)
    cover_pic = models.CharField(max_length=200, default='')


class Picture(models.Model):
    url = models.CharField(max_length=200)
    des = models.CharField(max_length=200)
    date = models.DateField()


class ArticleInfo(models.Model):
    article_id = models.ForeignKey(Article)
    date = models.DateField()
    author = models.CharField(max_length=20)
    comments = models.IntegerField()
    tags = models.CharField(max_length=100)
